package gitdemo1.git3.demo;

import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public   class Test  {
    public static void main(String[] args) {
        System.out.println(add(100));

    }

     public static int add(int num){
        int sum =0;
         for (int i = 1; i <= num; i++) {
             sum+=i;
         }
         return sum;
    }


}
